package com.handong.handserialprogram.model.entities;

/**
 * Created by Administrator on 2017/1/9.
 */

public class LatLngEntity {

    private double StartLat;
    private double StartLng;
    private double EndLat;
    private double EndLng;

    public double getStartLat() {
        return StartLat;
    }

    public void setStartLat(double startLat) {
        StartLat = startLat;
    }

    public double getStartLng() {
        return StartLng;
    }

    public void setStartLng(double startLng) {
        StartLng = startLng;
    }

    public double getEndLat() {
        return EndLat;
    }

    public void setEndLat(double endLat) {
        EndLat = endLat;
    }

    public double getEndLng() {
        return EndLng;
    }

    public void setEndLng(double endLng) {
        EndLng = endLng;
    }

    public boolean isEmpty() {
        return StartLat == 0.0 || StartLng == 0.0 || EndLat == 0.0 || EndLng == 0.0;
    }

    @Override
    public String toString() {
        return "Start: Lat:" + StartLat + ",Lng:" + StartLat;
    }
}
